wayland: do not update shadows for child windows
authorOlivier Fourdan <ofourdan@redhat.com>
Thu, 7 Apr 2016 13:56:46 +0000 (15:56 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 8 Apr 2016 14:59:36 +0000 (16:59 +0200)
commit83e775147f35145ff4e7122089fb48ddf8617fa5
tree63a329670f4c44cad56bcc604614c779e2ebed7a
parentd3a3d0673f8a6c52dac5fbbbdebeee2f456e5742
wayland: do not update shadows for child windows

glade-previewer places a gtkwindow inside another toplevel gtkwindow,
updating the shadow width for the client induces a busy loop where the
parent will grow continuously until it crashes gnome-shell/mutter.

To avoid the loop, do not update the shadow width if not dealing with a
toplevel window.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=761651
gtk/gtkwindow.c